この手順では、Visual Studio で、DropDown for UWP を使用して UWP アプリケーションを作成します。
<Page>
を編集して、次の名前空間を追加します。
コードのコピー
|
|
---|---|
xmlns:Xaml="using:C1.Xaml" |
<Grid>
</Grid>
タグを見つけ、次のマークアップを挿入して Grid の行を定義します。
コードのコピー
|
|
---|---|
<Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions> |
コードのコピー
|
|
---|---|
<CheckBox Content="AutoClose - determines if C1DropDown will automatically close when focus is lost." IsChecked="{Binding ElementName=c1DropDown1, Path=AutoClose, Mode=TwoWay}" Margin="10"/> |
コードのコピー
|
|
---|---|
<Xaml:C1DropDownButton Grid.Row="1" Background="White" x:Name="c1DropDown1" Padding="2" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center" > </Xaml:C1DropDownButton> |
コードのコピー
|
|
---|---|
<Xaml:C1DropDownButton.Header> <Border x:Name="dropDownBorder" Background="White" /> </Xaml:C1DropDownButton.Header> |
この手順では、新しい Visual Studio 2013 Windows ストアアプリケーションを追加し、CheckBox コントロールを追加し、C1DropDownBox コントロールを追加してカスタマイズを開始しました。